#!/bin/sh

NAME=ntpd
COMMAND=/etc/init.d/$NAME

[ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && {
	$COMMAND enabled && {
		$COMMAND restart
        }
}
